package com.warehouse_management.market.dao;

import com.warehouse_management.market.model.Custom;
import com.warehouse_management.market.model.CustomCondition;
import com.warehouse_management.market.model.*;
import com.warehouse_management.system.model.Dept;
import com.warehouse_management.system.model.Job;
import com.warehouse_management.login.model.Users;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IMarketDao {

    //万文成
    //查询全部客户信息
    public List<Custom> queryAllCustom();

    public Custom queryOneCustom(CustomCondition customCondition);

    public List<Custom> queryAllCustomByCondition(CustomCondition condition);

    //修改用户状态
    public int updateMarketCustomByState(CustomCondition customCondition);

    //修改客户信息
    public int updateCustom(CustomCondition customCondition);

    //查找职位
    public List<Job> queryAllJob();

    //根据职位查找用户
    public List<Users> queryUserByJob(Job job);

    public int saveFenPei(CustomCondition custom);

    //增加客户信息
    public int AddCustom(CustomCondition customCondition);

    //查询一个订单详情
    public Orde queryOneOrde(Orde orde);

    //查询所有订单
    public List<Orde> queryAllOrde();

    //查询订单详情商品
    public List<Orderdetails> queryOneOrderDetails(Orderdetails orderdetails);

    //根据条件查询订单
    public List<Orde> queryOrdeByCondition(OrdeCondition condition);

    //更改审核意见
    public int updateSuggest(Orde orde);


}
